package patrol.mobile.com.mobilepatrol.bean;

import android.text.TextUtils;

import java.io.Serializable;
import java.util.List;

/**
 * Created by z on 2018/10/28.
 * Des:
 */

public class JiankkElefailrptList implements Serializable{

    private int rows;
    private List<ListBean> list;

    public int getRows() {
        return rows;
    }

    public void setRows(int rows) {
        this.rows = rows;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean implements Serializable{
        private String id;
        private boolean isNewRecord;
        private String remarks;
        private String createDate;
        private String updateDate;
        private OrgBean org;
        private String orgId;
//        private AccountBean account;
        private String date;
        private String equipmentName;
        private String failureType;
        private String failureContent;
        private String failureReason;
        private String auditFlag;
        private String auditName;
        private String recFlag;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public boolean isIsNewRecord() {
            return isNewRecord;
        }

        public void setIsNewRecord(boolean isNewRecord) {
            this.isNewRecord = isNewRecord;
        }

        public String getRemarks() {
            return remarks;
        }

        public void setRemarks(String remarks) {
            this.remarks = remarks;
        }

        public String getCreateDate() {
            return createDate;
        }

        public void setCreateDate(String createDate) {
            this.createDate = createDate;
        }

        public String getUpdateDate() {
            return updateDate;
        }

        public void setUpdateDate(String updateDate) {
            this.updateDate = updateDate;
        }

        public OrgBean getOrg() {
            return org;
        }

        public void setOrg(OrgBean org) {
            this.org = org;
        }

        public String getOrgId() {
            return orgId;
        }

        public void setOrgId(String orgId) {
            this.orgId = orgId;
        }

//        public AccountBean getAccount() {
//            return account;
//        }
//
//        public void setAccount(AccountBean account) {
//            this.account = account;
//        }

        public String getDate() {
            return date;
        }

        public void setDate(String date) {
            this.date = date;
        }

        public String getEquipmentName() {
            return equipmentName;
        }

        public void setEquipmentName(String equipmentName) {
            this.equipmentName = equipmentName;
        }

        public String getFailureType() {
            switch (failureType) {
                case "1":
                    return "收费";
                case "2":
                    return "通信";
                case "3":
                    return "供电";
                case "4":
                    return "照明";
                case "5":
                    return "通风";
                case "6":
                    return "监控";

            }
            return failureType;
        }

        public void setFailureType(String failureType) {
            this.failureType = failureType;
        }

        public String getFailureContent() {
            return failureContent;
        }

        public void setFailureContent(String failureContent) {
            this.failureContent = failureContent;
        }

        public String getFailureReason() {
            return failureReason;
        }

        public void setFailureReason(String failureReason) {
            this.failureReason = failureReason;
        }

        public String getAuditFlag() {
            return auditFlag;
        }

        public void setAuditFlag(String auditFlag) {
            this.auditFlag = auditFlag;
        }

        public String getAuditName() {
            if (TextUtils.isEmpty(auditName)) {
                return "未审核";
            }
            return auditName;
        }

        public void setAuditName(String auditName) {
            this.auditName = auditName;
        }

        public String getRecFlag() {
            return recFlag;
        }

        public void setRecFlag(String recFlag) {
            this.recFlag = recFlag;
        }

        public static class OrgBean implements Serializable{
            /**
             * id : f3a5d918234c47c4b0d17b46c9731a43
             * isNewRecord : false
             * remarks :
             * createDate :
             * updateDate :
             * parentId :
             * innerCode :
             * iconCls :
             * orderNo : 0
             * isLeaf : false
             * text :
             * treeTable : sys_org
             * busiField :
             * busiFieldValue :
             * orgCode :
             * orgName : 莎车分局
             * orgType :
             * address :
             * zipCode :
             * master :
             * phone :
             * fax :
             * email :
             * flowId :
             * officeId : 0
             * extParentData : false
             * noUsed : false
             * content :
             * state : closed
             */

            private String id;
            private boolean isNewRecord;
            private String remarks;
            private String createDate;
            private String updateDate;
            private String parentId;
            private String innerCode;
            private String iconCls;
            private int orderNo;
            private boolean isLeaf;
            private String text;
            private String treeTable;
            private String busiField;
            private String busiFieldValue;
            private String orgCode;
            private String orgName;
            private String orgType;
            private String address;
            private String zipCode;
            private String master;
            private String phone;
            private String fax;
            private String email;
            private String flowId;
            private int officeId;
            private boolean extParentData;
            private boolean noUsed;
            private String content;
            private String state;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public boolean isIsNewRecord() {
                return isNewRecord;
            }

            public void setIsNewRecord(boolean isNewRecord) {
                this.isNewRecord = isNewRecord;
            }

            public String getRemarks() {
                return remarks;
            }

            public void setRemarks(String remarks) {
                this.remarks = remarks;
            }

            public String getCreateDate() {
                return createDate;
            }

            public void setCreateDate(String createDate) {
                this.createDate = createDate;
            }

            public String getUpdateDate() {
                return updateDate;
            }

            public void setUpdateDate(String updateDate) {
                this.updateDate = updateDate;
            }

            public String getParentId() {
                return parentId;
            }

            public void setParentId(String parentId) {
                this.parentId = parentId;
            }

            public String getInnerCode() {
                return innerCode;
            }

            public void setInnerCode(String innerCode) {
                this.innerCode = innerCode;
            }

            public String getIconCls() {
                return iconCls;
            }

            public void setIconCls(String iconCls) {
                this.iconCls = iconCls;
            }

            public int getOrderNo() {
                return orderNo;
            }

            public void setOrderNo(int orderNo) {
                this.orderNo = orderNo;
            }

            public boolean isIsLeaf() {
                return isLeaf;
            }

            public void setIsLeaf(boolean isLeaf) {
                this.isLeaf = isLeaf;
            }

            public String getText() {
                return text;
            }

            public void setText(String text) {
                this.text = text;
            }

            public String getTreeTable() {
                return treeTable;
            }

            public void setTreeTable(String treeTable) {
                this.treeTable = treeTable;
            }

            public String getBusiField() {
                return busiField;
            }

            public void setBusiField(String busiField) {
                this.busiField = busiField;
            }

            public String getBusiFieldValue() {
                return busiFieldValue;
            }

            public void setBusiFieldValue(String busiFieldValue) {
                this.busiFieldValue = busiFieldValue;
            }

            public String getOrgCode() {
                return orgCode;
            }

            public void setOrgCode(String orgCode) {
                this.orgCode = orgCode;
            }

            public String getOrgName() {
                return orgName;
            }

            public void setOrgName(String orgName) {
                this.orgName = orgName;
            }

            public String getOrgType() {
                return orgType;
            }

            public void setOrgType(String orgType) {
                this.orgType = orgType;
            }

            public String getAddress() {
                return address;
            }

            public void setAddress(String address) {
                this.address = address;
            }

            public String getZipCode() {
                return zipCode;
            }

            public void setZipCode(String zipCode) {
                this.zipCode = zipCode;
            }

            public String getMaster() {
                return master;
            }

            public void setMaster(String master) {
                this.master = master;
            }

            public String getPhone() {
                return phone;
            }

            public void setPhone(String phone) {
                this.phone = phone;
            }

            public String getFax() {
                return fax;
            }

            public void setFax(String fax) {
                this.fax = fax;
            }

            public String getEmail() {
                return email;
            }

            public void setEmail(String email) {
                this.email = email;
            }

            public String getFlowId() {
                return flowId;
            }

            public void setFlowId(String flowId) {
                this.flowId = flowId;
            }

            public int getOfficeId() {
                return officeId;
            }

            public void setOfficeId(int officeId) {
                this.officeId = officeId;
            }

            public boolean isExtParentData() {
                return extParentData;
            }

            public void setExtParentData(boolean extParentData) {
                this.extParentData = extParentData;
            }

            public boolean isNoUsed() {
                return noUsed;
            }

            public void setNoUsed(boolean noUsed) {
                this.noUsed = noUsed;
            }

            public String getContent() {
                return content;
            }

            public void setContent(String content) {
                this.content = content;
            }

            public String getState() {
                return state;
            }

            public void setState(String state) {
                this.state = state;
            }
        }

        public static class AccountBean implements Serializable{
            /**
             * id : eae336de433241fc96753898a29beeea
             * isNewRecord : false
             * remarks :
             * createDate :
             * updateDate :
             * loginName :
             * password :
             * newKey :
             * no :
             * name : 肖凯提
             * email :
             * phone :
             * mobile :
             * userType :
             * photo :
             * loginFlag :
             * oldLoginName :
             * newPassword :
             */

            private String id;
            private boolean isNewRecord;
            private String remarks;
            private String createDate;
            private String updateDate;
            private String loginName;
            private String password;
            private String newKey;
            private String no;
            private String name;
            private String email;
            private String phone;
            private String mobile;
            private String userType;
            private String photo;
            private String loginFlag;
            private String oldLoginName;
            private String newPassword;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public boolean isIsNewRecord() {
                return isNewRecord;
            }

            public void setIsNewRecord(boolean isNewRecord) {
                this.isNewRecord = isNewRecord;
            }

            public String getRemarks() {
                return remarks;
            }

            public void setRemarks(String remarks) {
                this.remarks = remarks;
            }

            public String getCreateDate() {
                return createDate;
            }

            public void setCreateDate(String createDate) {
                this.createDate = createDate;
            }

            public String getUpdateDate() {
                return updateDate;
            }

            public void setUpdateDate(String updateDate) {
                this.updateDate = updateDate;
            }

            public String getLoginName() {
                return loginName;
            }

            public void setLoginName(String loginName) {
                this.loginName = loginName;
            }

            public String getPassword() {
                return password;
            }

            public void setPassword(String password) {
                this.password = password;
            }

            public String getNewKey() {
                return newKey;
            }

            public void setNewKey(String newKey) {
                this.newKey = newKey;
            }

            public String getNo() {
                return no;
            }

            public void setNo(String no) {
                this.no = no;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getEmail() {
                return email;
            }

            public void setEmail(String email) {
                this.email = email;
            }

            public String getPhone() {
                return phone;
            }

            public void setPhone(String phone) {
                this.phone = phone;
            }

            public String getMobile() {
                return mobile;
            }

            public void setMobile(String mobile) {
                this.mobile = mobile;
            }

            public String getUserType() {
                return userType;
            }

            public void setUserType(String userType) {
                this.userType = userType;
            }

            public String getPhoto() {
                return photo;
            }

            public void setPhoto(String photo) {
                this.photo = photo;
            }

            public String getLoginFlag() {
                return loginFlag;
            }

            public void setLoginFlag(String loginFlag) {
                this.loginFlag = loginFlag;
            }

            public String getOldLoginName() {
                return oldLoginName;
            }

            public void setOldLoginName(String oldLoginName) {
                this.oldLoginName = oldLoginName;
            }

            public String getNewPassword() {
                return newPassword;
            }

            public void setNewPassword(String newPassword) {
                this.newPassword = newPassword;
            }
        }
    }
}
